package com.hailong.zyt.controller;

import com.hailong.zyt.beans.Student;
import com.hailong.zyt.service.StudentService;
import com.hailong.zyt.service.impl.StudentServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * <p>
 *  前端控制器
 * </p>
 * 处理index相关请求，去往登录，注册界面等
 * @author hailong
 * @since 2021-05-13
 */
@Slf4j
@Controller
public class IndexController {

    //学生服务
    private StudentService studentService;
    @Autowired
    public void setStudentService(StudentService studentService) { this.studentService = studentService; }





    /*
     * 教师登录
     * */
    @GetMapping("/index/admLogin")
    public String toAdmLogin(){
        return "/index/adminLogin";
    }
}
